<template>
  <div>
    <button @click="add">number 的值是：{{ number }}</button>
    <h3>count 的值是：{{$store.state.count}}</h3>
  </div>
</template>
<script>
  export default {
    data() {
      return {
        number:0,
      };
    },
    methods: {
      add() {
        this.number++;
      },
    },
    mounted() {
      console.log("number")
    },
  };
</script>
<style scoped></style>